home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950528-19950726 / 000385_news@columbia.edu_Tue Jul 18 12:44:53 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA13281
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Tue, 18 Jul 1995 08:45:09 -0400
  3. Received: by apakabar.cc.columbia.edu id AA23303
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Tue, 18 Jul 1995 08:45:07 -0400
  5. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  6. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: Extra Line Feeds\Car. Returns
  9. Date: 18 Jul 1995 12:44:53 GMT
  10. Organization: Columbia University
  11. Lines: 43
  12. Message-Id: <3ugac5$mo1@apakabar.cc.columbia.edu>
  13. References: <3uevnj$f88@armitage.cyberspace.com>
  14. Nntp-Posting-Host: watsun.cc.columbia.edu
  15. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  16.  
  17. In article <3uevnj$f88@armitage.cyberspace.com>,
  18.  <cbeard@cyberspace.com> wrote:
  19. : I am having problems while transferring a file from a VAX VMS system
  20. : running CKermit 5A (188) to my PC.  I use ProComm for windows, but I
  21. : have also tried Kermit 3.14, Telix Kermit and HyperTerm Kermit to no
  22. : avail.
  23. : I am transferring a JPEG file.  The file transfer seems fine, but the
  24. : photo has almost 3 times to many line feed/carriage returns in it.  I
  25. : have a copy of the files I have been testing with and it has 125 lines -
  26. : to the 380 lines in the Kermit version.  There does not seem to be a
  27. : pattern to the extra returns.
  28. : The VAX also has VMS Kermit - 32, which works the same.  I have also
  29. : played with packet lengths and tried text and binary.  The Show command
  30. : on the VAX says the packet length is 1024 and the file type is text -
  31. : which seems strange to as it's a JPEG file.
  32. On VMS, do a "dir/full" of the file.  I'll bet it lists the record format
  33. as Stream_LF, which is a text type.  If you read the VMS appendix of the
  34. C-Kermit manual, "Using C-Kermit", you'll see that the VMS version of
  35. C-Kermit automatically sets its transfer mode to text or binary on a per
  36. file basis when sending files, based on the record format of each file.
  37.  
  38. In the same Appendix, you'll also find the command that lets you override
  39. this behavior:
  40.  
  41.   SET FILE TYPE IMAGE
  42.  
  43. Please read the appendix for a fuller explanation.
  44.  
  45. As to why your JPEG file has a text-style record format, that's another
  46. question.  I suspect the software that created it was written in C, whose
  47. i/o libraries create files with this type by default, and the authors did
  48. not know how to give it a proper binary type, such as fixed.  The same
  49. thing happens with ZIP files on VMS.
  50.  
  51. If SET FILE TYPE FIXED does not fix the problem, then it is very likely
  52. that the copy of the file that you have on VMS is itself corrupted by
  53. having been uploaded in text mode (e.g. with FTP or Kermit) rather than
  54. binary mode.
  55.  
  56. - Frank